﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TemplateEditorDataSet" targetNamespace="http://tempuri.org/TemplateEditorDataSet.xsd" xmlns:mstns="http://tempuri.org/TemplateEditorDataSet.xsd" xmlns="http://tempuri.org/TemplateEditorDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="TemplateEditorDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="TemplateEditorDataSet" msprop:Generator_DataSetName="TemplateEditorDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Application" msprop:Generator_UserTableName="Application" msprop:Generator_RowDeletedName="ApplicationRowDeleted" msprop:Generator_RowChangedName="ApplicationRowChanged" msprop:Generator_RowClassName="ApplicationRow" msprop:Generator_RowChangingName="ApplicationRowChanging" msprop:Generator_RowEvArgName="ApplicationRowChangeEvent" msprop:Generator_RowEvHandlerName="ApplicationRowChangeEventHandler" msprop:Generator_TableClassName="ApplicationDataTable" msprop:Generator_TableVarName="tableApplication" msprop:Generator_RowDeletingName="ApplicationRowDeleting" msprop:Generator_TablePropName="Application">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" />
              <xs:element name="FacebookApiKey" msprop:Generator_UserColumnName="FacebookApiKey" msprop:Generator_ColumnVarNameInTable="columnFacebookApiKey" msprop:Generator_ColumnPropNameInRow="FacebookApiKey" msprop:Generator_ColumnPropNameInTable="FacebookApiKeyColumn" type="xs:string" />
              <xs:element name="FacebookSecret" msprop:Generator_UserColumnName="FacebookSecret" msprop:Generator_ColumnVarNameInTable="columnFacebookSecret" msprop:Generator_ColumnPropNameInRow="FacebookSecret" msprop:Generator_ColumnPropNameInTable="FacebookSecretColumn" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="StoryTemplateBundle" msprop:Generator_UserTableName="StoryTemplateBundle" msprop:Generator_RowDeletedName="StoryTemplateBundleRowDeleted" msprop:Generator_RowChangedName="StoryTemplateBundleRowChanged" msprop:Generator_RowClassName="StoryTemplateBundleRow" msprop:Generator_RowChangingName="StoryTemplateBundleRowChanging" msprop:Generator_RowEvArgName="StoryTemplateBundleRowChangeEvent" msprop:Generator_RowEvHandlerName="StoryTemplateBundleRowChangeEventHandler" msprop:Generator_TableClassName="StoryTemplateBundleDataTable" msprop:Generator_TableVarName="tableStoryTemplateBundle" msprop:Generator_RowDeletingName="StoryTemplateBundleRowDeleting" msprop:Generator_TablePropName="StoryTemplateBundle">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="FacebookApiKey" msprop:Generator_UserColumnName="FacebookApiKey" msprop:Generator_ColumnVarNameInTable="columnFacebookApiKey" msprop:Generator_ColumnPropNameInRow="FacebookApiKey" msprop:Generator_ColumnPropNameInTable="FacebookApiKeyColumn" type="xs:string" />
              <xs:element name="BundleId" msprop:Generator_UserColumnName="BundleId" msprop:Generator_ColumnVarNameInTable="columnBundleId" msprop:Generator_ColumnPropNameInRow="BundleId" msprop:Generator_ColumnPropNameInTable="BundleIdColumn" type="xs:long" default="-1" />
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" minOccurs="0" />
              <xs:element name="FullStoryTitle" msprop:Generator_UserColumnName="FullStoryTitle" msprop:Generator_ColumnVarNameInTable="columnFullStoryTitle" msprop:Generator_ColumnPropNameInRow="FullStoryTitle" msprop:Generator_ColumnPropNameInTable="FullStoryTitleColumn" type="xs:string" minOccurs="0" />
              <xs:element name="FullStoryBody" msprop:Generator_UserColumnName="FullStoryBody" msprop:Generator_ColumnVarNameInTable="columnFullStoryBody" msprop:Generator_ColumnPropNameInRow="FullStoryBody" msprop:Generator_ColumnPropNameInTable="FullStoryBodyColumn" type="xs:string" minOccurs="0" />
              <xs:element name="UniqueId" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="UniqueId" msprop:Generator_ColumnVarNameInTable="columnUniqueId" msprop:Generator_ColumnPropNameInRow="UniqueId" msprop:Generator_ColumnPropNameInTable="UniqueIdColumn" type="xs:int" />
              <xs:element name="Created" msprop:Generator_UserColumnName="Created" msprop:Generator_ColumnPropNameInRow="Created" msprop:Generator_ColumnVarNameInTable="columnCreated" msprop:Generator_ColumnPropNameInTable="CreatedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="StoryHashCode" msprop:Generator_UserColumnName="StoryHashCode" msprop:Generator_ColumnPropNameInRow="StoryHashCode" msprop:Generator_ColumnVarNameInTable="columnStoryHashCode" msprop:Generator_ColumnPropNameInTable="StoryHashCodeColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ShortStoryTemplate" msprop:Generator_UserTableName="ShortStoryTemplate" msprop:Generator_RowDeletedName="ShortStoryTemplateRowDeleted" msprop:Generator_RowChangedName="ShortStoryTemplateRowChanged" msprop:Generator_RowClassName="ShortStoryTemplateRow" msprop:Generator_RowChangingName="ShortStoryTemplateRowChanging" msprop:Generator_RowEvArgName="ShortStoryTemplateRowChangeEvent" msprop:Generator_RowEvHandlerName="ShortStoryTemplateRowChangeEventHandler" msprop:Generator_TableClassName="ShortStoryTemplateDataTable" msprop:Generator_TableVarName="tableShortStoryTemplate" msprop:Generator_RowDeletingName="ShortStoryTemplateRowDeleting" msprop:Generator_TablePropName="ShortStoryTemplate">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" type="xs:string" />
              <xs:element name="Body" msprop:Generator_UserColumnName="Body" msprop:Generator_ColumnVarNameInTable="columnBody" msprop:Generator_ColumnPropNameInRow="Body" msprop:Generator_ColumnPropNameInTable="BodyColumn" type="xs:string" minOccurs="0" />
              <xs:element name="BundleUniqueId" msprop:Generator_UserColumnName="BundleUniqueId" msprop:Generator_ColumnVarNameInTable="columnBundleUniqueId" msprop:Generator_ColumnPropNameInRow="BundleUniqueId" msprop:Generator_ColumnPropNameInTable="BundleUniqueIdColumn" type="xs:int" />
              <xs:element name="UniqueId" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="UniqueId" msprop:Generator_ColumnVarNameInTable="columnUniqueId" msprop:Generator_ColumnPropNameInRow="UniqueId" msprop:Generator_ColumnPropNameInTable="UniqueIdColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="OneLineTemplate" msprop:Generator_UserTableName="OneLineTemplate" msprop:Generator_RowDeletedName="OneLineTemplateRowDeleted" msprop:Generator_RowChangedName="OneLineTemplateRowChanged" msprop:Generator_RowClassName="OneLineTemplateRow" msprop:Generator_RowChangingName="OneLineTemplateRowChanging" msprop:Generator_RowEvArgName="OneLineTemplateRowChangeEvent" msprop:Generator_RowEvHandlerName="OneLineTemplateRowChangeEventHandler" msprop:Generator_TableClassName="OneLineTemplateDataTable" msprop:Generator_TableVarName="tableOneLineTemplate" msprop:Generator_RowDeletingName="OneLineTemplateRowDeleting" msprop:Generator_TablePropName="OneLineTemplate">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Title" msdata:Caption="Body" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" type="xs:string" />
              <xs:element name="BundleUniqueId" msprop:Generator_UserColumnName="BundleUniqueId" msprop:Generator_ColumnVarNameInTable="columnBundleUniqueId" msprop:Generator_ColumnPropNameInRow="BundleUniqueId" msprop:Generator_ColumnPropNameInTable="BundleUniqueIdColumn" type="xs:int" />
              <xs:element name="UniqueId" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="UniqueId" msprop:Generator_ColumnVarNameInTable="columnUniqueId" msprop:Generator_ColumnPropNameInRow="UniqueId" msprop:Generator_ColumnPropNameInTable="UniqueIdColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Application" />
      <xs:field xpath="mstns:FacebookApiKey" />
    </xs:unique>
    <xs:unique name="StoryTemplateBundle_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:StoryTemplateBundle" />
      <xs:field xpath="mstns:UniqueId" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:StoryTemplateBundle" />
      <xs:field xpath="mstns:BundleId" />
    </xs:unique>
    <xs:unique name="ShortStoryTemplate_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ShortStoryTemplate" />
      <xs:field xpath="mstns:BundleUniqueId" />
      <xs:field xpath="mstns:UniqueId" />
    </xs:unique>
    <xs:unique name="OneLineTemplate_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:OneLineTemplate" />
      <xs:field xpath="mstns:BundleUniqueId" />
      <xs:field xpath="mstns:UniqueId" />
    </xs:unique>
    <xs:keyref name="StoryTemplateBundle_OneLineTemplate" refer="StoryTemplateBundle_Constraint1" msprop:rel_Generator_UserRelationName="StoryTemplateBundle_OneLineTemplate" msprop:rel_Generator_RelationVarName="relationStoryTemplateBundle_OneLineTemplate" msprop:rel_Generator_UserChildTable="OneLineTemplate" msprop:rel_Generator_UserParentTable="StoryTemplateBundle" msprop:rel_Generator_ParentPropName="StoryTemplateBundleRow" msprop:rel_Generator_ChildPropName="GetOneLineTemplateRows" msdata:AcceptRejectRule="Cascade">
      <xs:selector xpath=".//mstns:OneLineTemplate" />
      <xs:field xpath="mstns:BundleUniqueId" />
    </xs:keyref>
    <xs:keyref name="StoryTemplateBundle_ShortStoryTemplate" refer="StoryTemplateBundle_Constraint1" msprop:rel_Generator_UserRelationName="StoryTemplateBundle_ShortStoryTemplate" msprop:rel_Generator_RelationVarName="relationStoryTemplateBundle_ShortStoryTemplate" msprop:rel_Generator_UserChildTable="ShortStoryTemplate" msprop:rel_Generator_UserParentTable="StoryTemplateBundle" msprop:rel_Generator_ParentPropName="StoryTemplateBundleRow" msprop:rel_Generator_ChildPropName="GetShortStoryTemplateRows" msdata:AcceptRejectRule="Cascade">
      <xs:selector xpath=".//mstns:ShortStoryTemplate" />
      <xs:field xpath="mstns:BundleUniqueId" />
    </xs:keyref>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="Application_StoryTemplateBundle" msdata:parent="Application" msdata:child="StoryTemplateBundle" msdata:parentkey="FacebookApiKey" msdata:childkey="FacebookApiKey" msprop:Generator_UserRelationName="Application_StoryTemplateBundle" msprop:Generator_RelationVarName="relationApplication_StoryTemplateBundle" msprop:Generator_UserChildTable="StoryTemplateBundle" msprop:Generator_UserParentTable="Application" msprop:Generator_ParentPropName="ApplicationRow" msprop:Generator_ChildPropName="GetStoryTemplateBundleRows" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>